/***
 * Mock扩展数据处理
 */
import Mock from 'mockjs'
/**
 * 随机获取手机号
 * @returns
 */
const phone = () => {
  const phonePrefix = ['132', '135', '137', '189', '158', '182', '187'] // 自己写前缀哈
  const index = Math.floor(Math.random() * phonePrefix.length)
  const phone = phonePrefix[index] + Mock.mock(/\d{8}/)
  return phone
}

export { phone }
